class CloudsRECCo(object):
	
	def __init__(self, data, idxK):
		self.mi    = data            # Mean value
		self.var   = data.dot(data)  # Mean-square length
		self.Mj    = 1               # Number of data associated with the cloud
		self.k_add = idxK            # Time stamp when the cloud was added
		self.T_k   = [idxK]          # Vector of time stamps 
		
	def updateCloud(self, mi, var, Mj, idxK):
		self.mi    = mi
		self.var   = var
		self.Mj    = Mj
		self.T_k.append(idxK)